StringSimilarity

String similarities return a similarity between two strings.

The returned similarity will always be \(\geqslant 0\).

  • 0 indicates that neither string have anything in common.

  • If two strings are identical and non-empty, then it should never return 0.

Author

Thibault Debatty, solonovamax

See also

Inheritors

Functions

Link copied to clipboard
abstract fun similarity(s1: String, s2: String): Double

Computes the similarity of two strings.